package Collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectonDemo3 {
    public static void main(String[] args) {
        Collection<String> list=new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("b");
        list.add("d");
        list.add("e");
        for (String s:list){
            System.out.println(s);
        }

    }
}
